﻿@using Webdiyer.WebControls.Mvc;
@{
    Layout = "~/Views/Shared/_CommonLayout.cshtml";
}
<script src="~/Scripts/project/ReportCenter/reportcentersearch.js"></script>
<script src="~/Scripts/jquery.chromatable-1.3.0/jquery.chromatable.js"></script>
<script type="text/javascript" src="~/Scripts/jquery-easyui/jquery.easyui.min.js"></script>
<link type="text/css" href="~/Scripts/jquery-easyui/themes/default/easyui.css" rel="stylesheet" />
<link type="text/css" href="~/Scripts/jquery-easyui/themes/icon.css" rel="stylesheet" />
<script src="~/Scripts/project/ReportCenter/oilanalysis.js"></script>
<script src="~/Scripts/HighCharts/highcharts.js"></script>

<div id="container" style="height: 100%;" class="box verticalbox">
    <div id='waitingPic' style='width: 100%; text-align: center; display: none;' class="fillparentheight">
            <img src='/Images/loading.gif' style='top: 50%; left:50%; position: absolute; margin-top: -50px;margin-left:-50px;' />
    </div>
    <div id='errorPic' style='width: 100%; text-align: center; display: none;' class="fillparentheight">
        <img src='/Images/loaderror.png' style='top: 50%; left:50%; position: absolute; margin-top: -50px;margin-left:-50px;' />
    </div>
</div>
<div>
    @using (Ajax.BeginForm("Data",
    new RouteValueDictionary { { "pageIndex", "" } },
    new AjaxOptions
    {
        UpdateTargetId = "container",
        InsertionMode = InsertionMode.InsertAfter,
        OnFailure = "loadFailed",
        LoadingElementId = "waitingPic",
        OnComplete = "loadcomplete"
    },
    new RouteValueDictionary { { "id", "searchForm" } }))
    {
        <input type="hidden" value="@ViewBag.StartTime" name="startTime" id="startTime" />
        <input type="hidden" value="@ViewBag.EndTime" name="endTime" id="endTime" />
        <input type="hidden" value="@ViewBag.IngoreZeroSpeedData" name="ingoreZeroSpeedData" id="ingoreZeroSpeedData" />        
        <input type="hidden" name="vehicles" id="vehicles" />
    }
</div>
